package cn.yl.pay.service.service.impl;


import cn.yl.pay.service.entity.PayOrderRecord;
import cn.yl.pay.service.mapper.RabbitmqMapper;
import cn.yl.pay.service.service.RabbitmqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RabbitmqServiceImpl implements RabbitmqService {
    @Autowired
    private RabbitmqMapper rabbitmqMapper;

    @Override
    public void sendWork() {
        rabbitmqMapper.sendWork();
    }

    @Override
    public void sendPayOrderRecord(PayOrderRecord payOrderRecord) {
        rabbitmqMapper.sendPayOrderRecord(payOrderRecord);
    }
}